

import { AxiosResponse } from "axios";
import { App } from "vue";
import request from "./axios.config";
import Vue from 'vue'
import http from "./http";
export default ({
    getPersonalData() {
        return http.get({url:"/sign/config/profile/get"});
    },
    //http://10.176.1.11/sign/departmentUserRole/deptCodeRole
    deptCodeRole(){
        return http.post({url:"/sign/departmentUserRole/deptCodeRole"});
    },
    updatePersonalData(data) {
        return http.post({url:"/sign/config/profile/update", data:data})
    },
    updatePasword(data) {
        return http.post({url:"/sign/config/changePassword",data:data})
    },
    getThirdPartyLogin() {
        return http.get({url:"/sign/config/socialsignon/fetch"})
    },
    deleteAppApi(ids) {
        return http.post({url:"/sign/config/socialsignon/delete?ids=" + ids})
    },
    bindAppApi(provider) {
        return request("/sign/logon/oauth20/authorize/" + provider, "get")
    },
    timeTokenApi(val) {
        return http.get({url:"/sign/config/timebased?generate=" + val})
    },
    callback(provider, data) {
        return http.get({url:"/sign/logon/oauth20/callback/" + provider + '?_allow_anonymous=true', data:data})
    },
    bindProvider(provider, data) {
        return http.get({url:"/sign/logon/oauth20/bind/" + provider + '?_allow_anonymous=true', data: data} )
    },
    getNotify(){
        return http.get({url:"/sign/dingtalk/get/all"})
    },
    //jwTeacher/queryOneTeacher 根据身份证号查询基本信息
    queryOneTeacher(data){
        return http.get({url:"/sign/jwTeacher/queryOneTeacher",data:data})
    },
    //重置密码
    // /home/setPassword
    resetPassword(data){
        return http.post({url:"/sign/home/setPassword",data:data})
    }

})
